package monitor

import (
	"MoSkeleton/framework/core/motypes"
)

type SysLogininfor struct {
	ID            uint64          `gorm:"primarykey;autoIncrement=false" json:"id,string"`
	UserName      string          `gorm:"column:user_name;type:VARCHAR(50);"`
	Ipaddr        string          `gorm:"column:ipaddr;type:VARCHAR(128);"`
	LoginLocation string          `gorm:"column:login_location;type:VARCHAR(255);"`
	Browser       string          `gorm:"column:browser;type:VARCHAR(50);"`
	Os            string          `gorm:"column:os;type:VARCHAR(50);"`
	Status        string          `gorm:"column:status;type:CHAR(1);"`
	Msg           string          `gorm:"column:msg;type:VARCHAR(255);"`
	LoginTime     *motypes.MoTime `gorm:"column:login_time;type:DATETIME;"`
}

func (b *SysLogininfor) TableName() string {
	return "sys_logininfor"
}
